export const TOKEN1 = "token1";
export const TOKEN2 = "token2";
const PREFIX = `/superlink/api`;
const SUPERLINK_BASE_URL = process.env.VUE_APP_BASE_URL + PREFIX;
export const SBGZ = {
  apiConvert: "",
  apiMethod: "0",
  apiUrl:
    SUPERLINK_BASE_URL + "/technology/tooling/report?token=${" + TOKEN2 + "}",
  dbChName: "设备工装",
  dbCode: "sbgz",
  dbSource: "",
  dbType: "1",
  fieldList: [
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [],"key": "设备类型", "value": "设备类型", "text": "设备类型", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "设备类型",
      fieldText: "设备类型",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [],  "key": "设备编号","value": "设备编号", "text": "设备编号", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "设备编号",
      fieldText: "设备编号",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [], "key": "工装名称", "value": "工装名称", "text": "工装名称", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "工装名称",
      fieldText: "工装名称",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [],"key": "设备中工装数量", "value": "设备中工装数量", "text": "设备中工装数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "设备中工装数量",
      fieldText: "设备中工装数量",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [],"key": "工装中零件数量", "value": "工装中零件数量", "text": "工装中零件数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "工装中零件数量",
      fieldText: "工装中零件数量",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{"required":true, "additional": [],"key": "装炉数量", "value": "装炉数量", "text": "装炉数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "装炉数量",
      fieldText: "装炉数量",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [],"key": "尾炉数量", "value": "尾炉数量", "text": "尾炉数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "尾炉数量",
      fieldText: "尾炉数量",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    },
    {
      additional: [],
      argument: "",
      defaultValue: "",
      errorRange: "",
      expression: "",
      extJson: `{ "required":true,"additional": [], "key":"摆放方式","value": "摆放方式", "text": "摆放方式", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
      fieldName: "摆放方式",
      fieldText: "摆放方式",
      lowerLimit: "",
      type: 0,
      unit: "",
      upperLimit: "",
      _text: ""
    }
  ],
  isList: "1",
  isPage: "1",
  jimuReportId: "",
  jsonData: "",
  paramList: [
    {
      extJson: "",
      id: "",
      orderNum: 1,
      paramName: TOKEN2,
      paramTxt: "",
      paramValue: "",
      tableIndex: 1,
      _index: 0,
      _rowKey: 16
    }
  ]
};
// const NO_SUBMIT_NAME = ['阶段', '设备类型', '设备编号', '装炉数量', '尾炉数量', '摆放方式']
// const NO_SUBMIT_NAME = ['阶段']
export const GET_TEMPLATE_DATA = excel_config_id => {
  return [
    {
      apiConvert: "",
      apiMethod: "0",
      apiUrl:
        SUPERLINK_BASE_URL +
        "/technology/technology/report?token=${" +
        TOKEN1 +
        "}",
      dbChName: "工艺变量",
      dbCode: "gybl",
      dbSource: "",
      dbType: "1",
      fieldList: [
        {
          disabled: true,
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{"required":true, "additional": [],"key": "零件号", "value": "零件号", "text": "零件号", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "零件号",
          fieldText: "零件号",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{"required":true, "additional": [], "key":"零件名称", "value": "零件名称", "text": "零件名称", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "零件名称",
          fieldText: "零件名称",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{"required":true, "additional": [],"key": "工序号", "value": "工序号", "text": "工序号", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "工序号",
          fieldText: "工序号",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [], "key": "工序名称", "value": "工序名称", "text": "工序名称", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "工序名称",
          fieldText: "工序名称",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{"required":true, "additional": [],"key": "委托工序号", "value": "委托工序号", "text": "委托工序号", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "委托工序号",
          fieldText: "委托工序号",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{"required":true, "additional": [],"key": "材料牌号", "value": "材料牌号", "text": "材料牌号", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "材料牌号",
          fieldText: "材料牌号",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        }
      ],
      isList: "1",
      isPage: "1",
      jimuReportId: excel_config_id,
      jsonData: "",
      // 路径上的参数
      paramList: [
        {
          extJson: "",
          id: "",
          orderNum: 1,
          paramName: TOKEN1,
          paramTxt: "",
          paramValue: "",
          tableIndex: 1,
          _index: 0,
          _rowKey: 16
        }
      ]
    },
    {
      apiConvert: "",
      apiMethod: "0",
      apiUrl:
        SUPERLINK_BASE_URL +
        "/technology/formula/report?token=${" +
        TOKEN2 +
        "}",
      dbChName: "配方变量",
      dbCode: "pfbl",
      dbSource: "",
      dbType: "1",
      fieldList: [
        {
          disabled: true,
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [],"key": "阶段", "value": "阶段", "text": "阶段", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "阶段",
          fieldText: "阶段",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        }
      ],
      isList: "1",
      isPage: "1",
      jimuReportId: excel_config_id,
      jsonData: "",
      paramList: [
        {
          extJson: "",
          id: "",
          orderNum: 1,
          paramName: TOKEN2,
          paramTxt: "",
          paramValue: "",
          tableIndex: 1,
          _index: 0,
          _rowKey: 16
        }
      ]
    },
    {
      apiConvert: "",
      apiMethod: "0",
      apiUrl:
        SUPERLINK_BASE_URL +
        "/technology/tooling/report?token=${" +
        TOKEN2 +
        "}",
      dbChName: "设备工装",
      dbCode: "sbgz",
      dbSource: "",
      dbType: "1",
      fieldList: [
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [],"key": "设备类型", "value": "设备类型", "text": "设备类型", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "设备类型",
          fieldText: "设备类型",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [],  "key": "设备编号","value": "设备编号", "text": "设备编号", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "设备编号",
          fieldText: "设备编号",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [], "key": "工装名称", "value": "工装名称", "text": "工装名称", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "工装名称",
          fieldText: "工装名称",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [],"key": "设备中工装数量", "value": "设备中工装数量", "text": "设备中工装数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "设备中工装数量",
          fieldText: "设备中工装数量",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [],"key": "工装中零件数量", "value": "工装中零件数量", "text": "工装中零件数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "工装中零件数量",
          fieldText: "工装中零件数量",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{"required":true, "additional": [],"key": "装炉数量", "value": "装炉数量", "text": "装炉数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "装炉数量",
          fieldText: "装炉数量",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [],"key": "尾炉数量", "value": "尾炉数量", "text": "尾炉数量", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "尾炉数量",
          fieldText: "尾炉数量",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        },
        {
          additional: [],
          argument: "",
          defaultValue: "",
          errorRange: "",
          expression: "",
          extJson: `{ "required":true,"additional": [], "key":"摆放方式","value": "摆放方式", "text": "摆放方式", "unit": "", "type": 0, "errorRange": "", "argument": "", "expression": "", "lowerLimit": "", "upperLimit": "", "defaultValue": "", "_text": "" }`,
          fieldName: "摆放方式",
          fieldText: "摆放方式",
          lowerLimit: "",
          type: 0,
          unit: "",
          upperLimit: "",
          _text: ""
        }
      ],
      isList: "1",
      isPage: "1",
      jimuReportId: excel_config_id,
      jsonData: "",
      paramList: [
        {
          extJson: "",
          id: "",
          orderNum: 1,
          paramName: TOKEN2,
          paramTxt: "",
          paramValue: "",
          tableIndex: 1,
          _index: 0,
          _rowKey: 16
        }
      ]
    }
  ];
};
